VERSION=0.2

install:
	cp photo-grid-print /usr/bin
	mkdir -p /usr/share/photo-grid-print
	cp photo-grid-print.glade /usr/share/photo-grid-print
	cp photo-grid-print.desktop /usr/share/applications
uninstall:
	rm /usr/bin/photo-grid-print
	rm /usr/share/photo-grid-print/photo-grid-print.glade
	rmdir /usr/share/photo-grid-print
	rm /usr/share/applications/photo-grid-print.desktop
package:
	checkinstall -D --install=no --pkgname=photo-grid-print --pkgversion=$(VERSION) --pkglicense=MIT --pkggroup=gnome --maintainer=ralpht@gmail.com --requires=python-gtk2 --pkgarch=all make install
	tar zcf photo-grid-print-$(VERSION).tar.gz photo-grid-print photo-grid-print.desktop photo-grid-print.glade Makefile
distclean:
	rm -f photo-grid-print_$(VERSION)-1_all.deb
	rm -f photo-grid-print-$(VERSION).tar.gz
